--[[ Aprs4G by BG2LBF - 主文件（BD3ND修复版） ]]
PROJECT = "Aprs4G"
VERSION = "1.0.48"--
PRODUCT_KEY = "g0eVmTtvQyCB8zbp6u7reIeONAsi8zkg" -- 该产品key是APRS4G,Air780EG-A12定位器升级使用，非该型号请务必修改

-- 一些固件并不提供 mobile.model()；为避免崩溃，做兼容处理
local imei  = (mobile and mobile.imei and mobile.imei()) or "?"
local model = (mobile and mobile.model and mobile.model()) or "?"   -- 关键：判空

log.info("main", PROJECT, VERSION, imei)
if rtos and rtos.poweronReason then
    log.info("main", "PWRON_RAW", rtos.poweronReason())
end

_G.sys = require("sys")
_G.sysplus = require("sysplus")
require "ota"
require "cfg"
require "wdts"
require "led"
require "adcs"
require "audioctl"
require "powerctl"
require "webcmd"
require "smscmd"
require "nets"
require "traccar"
require "lbs"
require "pos"
require "posfix"
require "msg"
require "attitude"
require "timedstart"
require "shici"
require "mqtts"
require "mixloc"
require "diag"


-- mobile.simid(0)  -- 切换sim卡

-- 用户代码已结束---------------------------------------------
-- 结尾总是这一句
sys.run()
-- sys.run()之后后面不要加任何语句!!!!!
